package splicer;

import com.jme3.app.SimpleApplication;
import com.jme3.light.DirectionalLight;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;
import com.jme3.scene.Spatial;



/**
 * test
 * @author normenhansen
 */
public class Main extends SimpleApplication {
  
    
  public static void main(String[] args) {
    Main app = new Main();
    app.start();
  }
  
  @Override
  public void simpleInitApp() {
    Spatial teapot = assetManager.loadModel("Models/untitled.obj");
    Material mat1 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
    mat1.setColor("Color", ColorRGBA.Blue);
    teapot.setMaterial(mat1);
    rootNode.attachChild(teapot);
    
    DirectionalLight sun = new DirectionalLight();
    sun.setDirection(new Vector3f(-0.1f, -0.7f, -1.0f));
    rootNode.addLight(sun);
  }
}
